<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button v-on="{mouseenter:onEnter}" @click="onClick">点我</button>
        <form @keyup.enter="onEnter" @submit.prevent="onSubmit($event)">
            <input type="text">
            <input type="submit" value="提交">
        </form>
    </div>

    <script src="https://cdn.bootcss.com/vue/2.4.2/vue.min.js"></script>
    <script src="main.js"></script>
</body>
</html>
